package com.ihunanren.dao.weixin;

import java.sql.SQLException;

import com.ihunanren.dao.pojo.SchoolCurriculumDefinedDO;

/**
 * @author kalman03
 */
public interface ISchoolCurriculumDefinedDao {

	/**
	 * 根据接头暗号获取课程表定义的信息
	 * @param diyName
	 * @return
	 */
	SchoolCurriculumDefinedDO getByDiyName(String diyName)throws SQLException;
	/**
	 * 根据id获取课程表定义的信息
	 * @param definedId
	 * @return
	 * @throws SQLException
	 */
	SchoolCurriculumDefinedDO getByDefinedId(long definedId)throws SQLException;
	/**
	 * 根据用户id获取课程表定义的信息
	 * @return
	 * @throws SQLException
	 */
	SchoolCurriculumDefinedDO getByUserNamed(String name)throws SQLException;
	
	SchoolCurriculumDefinedDO getByEmail(String email)throws SQLException;
	/**
	 * 新增
	 * @param definedDO
	 */
	void insertSchoolCurriculumDefinedDO(SchoolCurriculumDefinedDO definedDO)throws SQLException;
	/**
	 * 更新
	 * @param definedDO
	 * @return
	 */
	boolean updateSchoolCurriculumDefinedDO(SchoolCurriculumDefinedDO definedDO)throws SQLException;
}
